package com.qf.rbac2202.sys.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 角色
 * </p>
 *
 * @author dong_
 * @since 2022-10-28
 */
@Getter
@Setter
@TableName("sys_role")
public class SysRole implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "role_id", type = IdType.AUTO)
    private Long roleId;

    @Override
    public String toString( ) {
        return "SysRole{"+
                "roleId="+roleId+
                ", roleName='"+roleName+'\''+
                ", remark='"+remark+'\''+
                ", deptId="+deptId+
                ", deptName='"+deptName+'\''+
                ", createTime="+createTime+
                ", menuIdList="+menuIdList+
                ", deptIdList="+deptIdList+
                '}';
    }

    /**
     * 角色名称
     */
    private String roleName;

    /**
     * 备注
     */
    private String remark;

    /**
     * 部门ID
     */
    private Long deptId;

    @TableField(exist=false)
    private String deptName;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 角色拥有的菜单id
     */
    @TableField(exist=false)
    private List<Long> menuIdList;

    @TableField(exist=false)
    private List<Long> deptIdList;
}
